/**
 * $Id: CNGPSequenceSower.java,v 1.1 2006/09/22 07:56:44 martin Exp $
 *
 * Copyright 2005 Skyinfo, Inc. All Rights Reserved.
 */
package com.haoxi.gateway.cngpmsg;

public class CNGPSequenceSower {
    private static int sequence = 0;

    public synchronized static void setNetSequence(CNGPMessage message) {

        sequence++;
        if (sequence >= 0x7fffffff) {
            sequence = 0;
        }
        message.setSequenceId(sequence);
    }
}
